//
//  SHConstants.m
//  Kangyx
//
//  Created by 王乐乐 on 16/9/12.
//  Copyright © 2016年 Wanglele. All rights reserved.
//

#import "SHConstants.h"
#import <UIKit/UIKit.h>
#import "WLTool.h"
#import "HengYouCai-Swift.h"

CGFloat kJcwGetNavHeight(){
    return [WLTool isiPhoneXSeries] ? 88: 64;
}

CGFloat kJcwGetTabbarHeight(){
    return [WLTool isiPhoneXSeries] ? 83: 49;
}
CGFloat kJcwStatuBarHeight(){
    return [WLTool isiPhoneXSeries] ? 44: 20;
}
CGFloat SafeAreaInsetsWithBottom(){
    if (@available(iOS 11.0,*)) {
        return  [WLTool isiPhoneXSeries] ? UIApplication.sharedApplication.keyWindow.safeAreaInsets.bottom : 0.0;
    } else  {
        return 0.0;
    }
}
BaseNavigationController * kJcwGetLogInVC(){
    return [[BaseNavigationController alloc] initWithRootViewController:[[JCWLogInVC alloc] init]];
}


@implementation SHConstants


/** 渠道码 */
NSString * const kChannel_app         =  @"zycf";

/** 上一个用户账户记录 */
NSString * const kSHLastUserName                          = @"kSHLastUserName";


/** 膳惠客服电话 */
NSString * const kSHESQPhoneNumber                      = @"400-179-2288";


/** 五档明细K线图等等轮训时间 */
NSTimeInterval  kSHWheelTime                          = 3;

/**  分时轮训时间 */
NSTimeInterval const kSHWheelTimeFenshi                          = 120;

/** 分时线颜色 */
NSString * const kSHFSKLineColorStr                        = @"#3f69b0";
/** 五日线颜色 */
NSString * const kSHWRKLineColorStr                      = @"#c46abf";
/** 十日线颜色 */
NSString * const kSHSRKLineColorStr                        = @"#bc9765";



/** 提现手续费比例 */
double kSHWITHDRAWRATE                            = 0.00;


/** 用户登录通知 */
NSString * const kNotificationNeedLogin                 = @"NotificationNeedLogin";
/** 交易界面切换通知 */
NSString * const kNotificationSecondVCScrolled    = @"NotificationSecondVCScrolled";
/** 产品申购界面切换通知 */
NSString * const kNotificationProductSubscriVCScrolled  = @"NotificationProductSubscriVCScrolled";
/* 撤单成功 */
NSString * const kNotificationUndoSuccess  = @"NotificationUndoSuccess";







NSString * const KInviterImgUrl = @"inviterImgUrl" ; //邀请好友背景图片
/** 用户sessionId */
NSString * const kUserSessionId                             = @"jsessionid";


NSString * const kCusCode                             = @"cusCode";/** 用户邀请码 */
NSString * const kCusTitle                             = @"cusTitle";/** 用户邀请标题 */
NSString * const kCusDescrption                   = @"cusDescrption";/** 用户邀请描述 */
NSString * const kCusShareLink                   = @"cusShareLink";/** 用户邀请链接 */
NSString * const kCusShareImageUrl          = @"cusShareImageUrl";/** 用户邀请logo */


NSString * const kCardStatus                             = @"cardStatus";/** 用户sessionId */
NSString * const kUserIdCard                             = @"userIdCard";/** 用户sessionId */
NSString * const kUserRealname                             = @"userRealname";/** 用户sessionId */
NSString * const kUserPaypassword                             = @"userPaypassword";/** 用户sessionId */
NSString * const kRealnameStatus                             = @"realnameStatus";/** 用户sessionId */
NSString * const kUserAccount                             = @"userAccount";/** 用户sessionId */
NSString * const kUserLevel                       = @"userLevel";/** 用户风险评测等级 */
NSString * const kPhone = @"phone" ;     /** 公司电话 */
NSString * const KRecordNum = @"recordNum"  ;     /**备案号 */
NSString * const kCompony = @"compony"  ;     /** 公司名称*/
NSString * const KRegistSuccess                      = @"KRegistSuccess";/** 用户风险评测等级 */
NSString * const KWalletaward = @"KWalletaward";

/** 项目菊花隐藏时间 长一点 */
NSTimeInterval const kHUDHideDelayB                  = 3;

/** 项目菊花隐藏时间 */
NSTimeInterval const kHUDHideDelay                  = 1;

/** 菊花加载显示文字 */
NSString * const kSHNetLoading                            = @"请稍后...";


/** 通用间距大小 */
CGFloat const kPaddingValue                                  = 12.0f;

/** 输入框通用高度 */
CGFloat const kTFHeight                                         = 44.0f;

/** 输入框LeftView通用宽度 */
CGFloat const kTFLeftViewWidth                           = 103.0f;

/** 错误描述 */
NSString * const kErrorUnknown                            = @"未知错误";

/** http请求方式 */
NSString * const kSHNetServicePost                       = @"post";

NSString * const kSHNetServiceGet                        = @"get";

//AppID：
//3ebTs1czyAAhNN7Wh4i7T6
//AppSecret：
//j0pZ8Rx5KFAAU2qe5mgum9
//AppKey：
//OH49Z5falk9SyyfEYmZQb2
//MasterSecret：
//mklyyIlWfqABYRSnF0ChY4
//个推
NSString * const kGetuiAppid                            = @"oBHhxh6wNr67tamYPtL4wA";
NSString * const kGetuiAppkey                           = @"WAw1EZ3Ve5A43EWUhOwl08";
NSString * const kGetuiAppSecret                        = @"b47aoBtCrw9WwHKCOwmN36";

//友盟统计key
NSString * const kUMSdkAppKey       = @"5b330602b27b0a5ea1000021";

//ShareSdk
NSString * const kSHShareSdkAppkey                        = @"29ba5b67de352";
//QQ
NSString * const kSHShareAppIdQQ                        = @"1106923835";
//QQ
NSString * const kSHShareAppKeyQQ                        = @"ZEkQY9WVuSBiT4Vz";
//WX//TODO:没审核过5.21
NSString * const kSHShareAppIdWeChat                        = @"wxd0e7ad795b17372b";
//WX
//NSString * const kSHShareAppSecretWeChat                        = @"11ce93c48386461b6db52539a7007242";
NSString * const kSHShareAppSecretWeChat                        = @"2fe2fb6db25f20fb7e3f8f3eddafdf0d";



//分享内容
NSString * const kSHShareContent                                = @"我的邀请码是... 赶快来投资吧";

//#define SinaWeiboAppKey @"2435847568"
//#define SinaWeiboAppSecret @"dbb19f4c43fde7a33bfa365cc94f4420"
//#define ShareSinaWeiboAppRedirect @"https://api.weibo.com/oauth2/default.html"



#pragma mark   __________________商城订单状态____________________

/** 交收订单 */
NSString * const kShopOrderStateSetTlement                = @"0";
/** 交收订单 */
NSString * const kShopOrderStateSetTlementlStr            = @"交收订单";

/** 全部订单 */
NSString * const kShopOrderStateAll                                  = @"0";
/** 全部订单 */
NSString * const kShopOrderStateAllStr                             = @"全部订单";

/** 待付款 */
NSString * const kShopOrderStateWaitingToPay                = @"10";
/** 待付款 */
NSString * const kShopOrderStateWaitingToPayStr            = @"待付款";

/** 待发货 */
NSString * const kShopOrderStateWaitingToDeliver          = @"20";
/** 待发货 */
NSString * const kShopOrderStateWaitingToDeliverStr      = @"待发货";

/** 待收货 */
NSString * const kShopOrderStateWaitingToReceive         = @"30";
/** 待收货 */
NSString * const kShopOrderStateWaitingToReceiveStr     = @"待收货";

/** 交易完成 */
NSString * const kShopOrderStateDone                              = @"40";
/** 交易完成 */
NSString * const kShopOrderStateDoneStr                         = @"交易完成";

/** 待付款 */
NSString * const kShopOrderStateCancel                = @"50";
/** 待付款 */
NSString * const kShopOrderStateCancelStr            = @"已取消";

@end
